<?php 
$tabla="farmacias";
$condicion=" FarmaciaActiva=1 ";
$orden=" order by rand() limit 0,3";
$res=cons_sql($tabla,$condicion,$orden);
if(mysql_num_rows($res)>0):
?>


<div class="sol">
<div class="farm">Farmacias y Botiquines Sociales</div>
<?php while($reg=mysql_fetch_array($res)):?>
<div class="row">
<div class="col-md-12"><span class="lugar"><strong><?php echo strtoupper(utf8_encode($reg['FarmaciaLocalidad']))?></strong><br> <?php echo utf8_encode($reg['FarmaciaResponsable'])?>
&nbsp;<span class="glyphicon glyphicon-map-marker" aria-hidden="true"></span>&nbsp;<b><?php echo utf8_encode($reg['FarmaciaDomicilio'])?></b></span>
<?php //echo utf8_encode($reg['FarmaciaTelefono'])?></div>
</div>
<?php endwhile ?>	
<a href="farmacias.php"><div class="ver">Ver Todas</div></a>
</div>
<?php endif ?>	